package org.point.service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.point.common.service.BaseService;
import org.point.common.util.DoPage;
import org.point.domain.CreditsBehavior;

/**
 * 
 * @ClassName: CreditsBehaviorService  
 * @Description: TODO(积分行为对象业务实现类)  
 * @author Kenny_Z' szqiuk@gmail.com
 * @date 2016年10月23日 下午3:56:17  
 *
 */
public interface CreditsBehaviorService extends BaseService<CreditsBehavior, Serializable>{

	/**
	 * 
	 * @Title: searchCreditsBehavior 
	 * @Description: TODO(查询积分行为对象记录) 
	 * @param @param page
	 * @param @return    设定文件 
	 * @return List<CreditsBehavior>    返回类型 
	 * @throws
	 */
	public List<CreditsBehavior> searchCreditsBehavior(DoPage<CreditsBehavior> page);
	public DoPage<CreditsBehavior> searchCBForPage(DoPage<CreditsBehavior> page);
	
	/**
	 * 
	 * @Title: countCreditsBehavior 
	 * @Description: TODO(查询积分行为对象记录数) 
	 * @param @param page
	 * @param @return    设定文件 
	 * @return Integer    返回类型 
	 * @throws
	 */
	public Integer countCreditsBehavior(DoPage<CreditsBehavior> page);
	
	/**
	 * @param cbCode 
	 * 
	 * @Title: insertCreditsBehavior 
	 * @Description: TODO(新增积分行为对象) 
	 * @param @param record
	 * @param @return    设定文件 
	 * @return Integer    返回类型 
	 * @throws
	 */
	public Integer insertCreditsBehavior(CreditsBehavior record, String cbCode);
	
	/**
	 * 
	 * @Title: editCreditsBehavior 
	 * @Description: TODO(修改积分行为对象状态) 
	 * @param @param map
	 * @param @return    设定文件 
	 * @return Integer    返回类型 
	 * @throws
	 */
	public Integer editCreditsBehavior(Map<String, Object> map);
	
	public CreditsBehavior getCBByCBID(Map<String, Object> map);
	public Integer deleteCBids(Map<String, Object> map);
	
}
